﻿using System;

namespace Biblio2.LocalParsing
{
    public class Replacement
    {
        private int m_iIdReplacement;
        private bool m_bEnable;
        private int m_iBefore;
        private String m_sToReplace;
        private String m_sWith;

        public int getIdReplacement() { return m_iIdReplacement; }
        public bool isEnabled() { return m_bEnable; }
        public int getBefore() { return m_iBefore; }
        public String getToReplace() { return m_sToReplace; }
        public String getWith() { return m_sWith; }

        public Replacement()
        {
            m_iIdReplacement = -1;
            m_bEnable = false;
            m_iBefore = 0;
            m_sToReplace = String.Empty;
            m_sWith = String.Empty;
        }

        public Replacement(int id, int before, String toReplace, String with, bool enable)
        {
            m_iIdReplacement = id;
            m_bEnable = enable;
            m_iBefore = before;
            m_sToReplace = toReplace;
            m_sWith = with;
        }

        public Replacement(int id, int before, String toReplace, String with)
        {
            m_iIdReplacement = id;
            m_bEnable = true;
            m_iBefore = before;
            m_sToReplace = toReplace;
            m_sWith = with;
        }
    }
}
